let fs = require('fs')
let os = require('os')
let url = require('url')
let http = require('http')
let path = require('path')
let querystring = require('querystring')
let promisify = require('util').promisify
let mime = require('mime-types')

let defaults = {
  mime: {
    html: 'text/html; charset=utf-8'
  },
  type: {
    FILE: 'file',
    NOT_FOUND: '404',
    DIRECTORY: 'directory'
  }
}

let { mime: defaultMimeMap, type: defaultTypeMap } = defaults

let cwd = process.cwd()

let exists = promisify(fs.exists)
let lstat = promisify(fs.lstat)
let realpath = promisify(fs.realpath)
let readFile = promisify(fs.readFile)
let readdir = promisify(fs.readdir)


var filename = '/Users/ccsa/dev/git/my-anywhere/node_modules/arr-union'
// var filename = '/Users/ccsa/dev/git/my-anywhere/node_modules/url-parse-lax'

fs.exists(filename, (err, data) => {

  console.log(err)

  console.log(data)

})